package com.antdesignbackend.backend.form.saleDeclarationA.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import lombok.Data;

/**
 * 跨省销售用产地检疫申报单(动物A)
 *
 * @author 林宇杰
 * @email saleDeclarationA
 * @date 2020-08-13 16:08:36
 */

@Data
@TableName(value = "t_saledeclarationa")
public class SaleDeclarationA implements Serializable {
	private static final long serialVersionUID = 1L;

	@TableId(value = "Id",type = IdType.AUTO)
	private Integer id;

	//养殖档案是否建立
	@TableField(value = "Build")
	private String build;
	//畜主
	@TableField(value = "Owners")
	private String owners;
	//联系电话
	@TableField(value = "Phone")
	private String phone;
	//购买人
	@TableField(value = "Buyer")
	private String buyer;
	//购买人电话
	@TableField(value = "BuyerPhone")
	private String buyerPhone;
	//动物种类
	@TableField(value = "AnimalType")
	private String animalType;
	//数量
	@TableField(value = "Number")
	private Integer number;
	//耳标号从1350481
	@TableField(value = "StarEar")
	private String starEar;
	//至1350381
	@TableField(value = "EndEar")
	private String endEar;
	//启运地点
	@TableField(value = "StarAddress")
	private String starAddress;
	//村
	@TableField(value = "Village")
	private String village;
	//当前地点
	@TableField(value = "NowAddress")
	private String nowAddress;
	//到达省、市(州)名称
	@TableField(value = "ArriveCityName")
	private String arriveCityName;
	//到达县乡村名称
	@TableField(value = "ArriveTownName")
	private String arriveTownName;
	//用途
	@TableField(value = "Purpose")
	private String purpose;
	//承运人
	@TableField(value = "Carry")
	private String carry;
	//承运人电话
	@TableField(value = "CarryPhone")
	private String carryPhone;
	//运载方式
	@TableField(value = "Transportation")
	private String transportation;
	//运载工具消毒药品
	@TableField(value = "Drug")
	private String drug;
	//动物状态照片
	@TableField(value = "AnimalPhoto")
	private String animalPhoto;
	//运载车辆图片
	@TableField(value = "CarPhoto")
	private String carPhoto;
	//生猪运输车辆备案表
	@TableField(value = "PigCarPhoto")
	private String pigCarPhoto;
	//销售时间
	@TableField(value = "SaleDate")
	@DateTimeFormat(pattern="yyyy-MM-dd")
	@JsonFormat(pattern = "yyyy-MM-dd")
	private Date saleDate;
	//农产品合格证/追溯码
	@TableField(value = "CertificatePhoto")
	private String certificatePhoto;
	//备注
	@TableField(value = "Remark")
	private String remark;
	//状态，待审0，驳回1，待出证2，已出证3
	@TableField(value = "Types")
	private Integer types;
	//创建人
	@TableField(value = "CreateBy")
	private Integer createBy;
	//创建时间
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@TableField(value = "CreateTime")
	private Date createTime;
	//企业ID
	@TableField(value = "Eid")
	private Integer eid;
	//销售动物种类
	@TableField(value = "SaleAnimalType")
	private String saleAnimalType;
	//批次号
	@TableField(value = "BatchNumber")
	private Integer batchNumber;
	//动物明细表主键ID
	@TableField(value = "Aid")
	private Integer aid;
	//审批意见
	@TableField(value = "Opinion")
	private String opinion;
	//审批人
	@TableField(value = "AprovalId")
	private Integer aprovalId;
	@TableField(value = "Aproval")
	private String aproval;
	//审批时间
	@TableField(value = "AprovalTime")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date aprovalTime;
	//出证人
	@TableField(value = "CertificateId")
	private Integer certificateId;
	@TableField(value = "Certificate")
	private String certificate;
	//出证时间
	@TableField(value = "CertificateTime")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date certificateTime;
	//出证人签字
	@TableField(value = "Witness")
	private String witness;
	//畜主签字
	@TableField(value = "Livestock")
	private String livestock;
}
